<template>
  <div>
    <span id="counter">{{ counter }}</span>
    <button @click="counter += 1">点击</button>
  </div>
</template>

<script>
export default {
  name: "Counter",
  data() {
    return {
      counter: 2,
    };
  },
};
</script>

<style scoped></style>
